<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<title>对象复制</title>
</head>

<body>

	<p> 对象复制</p>
	<p id="demo"></p>
	<script>

		function fpnq(num){
			var res = 0
			if( num == 1){
				return 1;
			}else if(num == 0){
				return 0;
			}else{
				return fpnq(num-1) + fpnq(num-2);
			}

		}

		// 调用
		var obj = {
			name : "",
			address: "",
			data: { hobbies: ["reading", "music"] }
		};
		console.log('s1',obj);
		console.log('s2',obj.data.hobbies);
	</script>

</body>

</html>